package com.zerotwo.exam.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zerotwo.exam.user.model.UserAuthInfo;
import com.zerotwo.exam.user.mapper.UserAuthInfoMapper;
import com.zerotwo.exam.user.service.IUserAuthInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


/**
 * @author 02
 * @version 1.0
 * @Date 2024/7/5
 * @Description VIEW
 */
@Service
public class UserAuthInfoServiceImpl extends ServiceImpl<UserAuthInfoMapper, UserAuthInfo> implements IUserAuthInfoService {
    public UserAuthInfo getStudentByUserId(int userId){
        LambdaQueryWrapper<UserAuthInfo> queryWrapper=new LambdaQueryWrapper<>();
        queryWrapper.eq(UserAuthInfo::getUserId,userId);
        return getOne(queryWrapper);
    }
}
